//
//  TZProgressView.m
//  BSBDJ
//
//  Created by user on 16/5/26.
//  Copyright © 2016年 Burning. All rights reserved.
//

#import "TZProgressView.h"


@implementation TZProgressView

- (void)awakeFromNib
{
    self.roundedCorners = 2;
    // 字体颜色
    self.progressLabel.textColor = [UIColor redColor];
    
    // 进度条当前进度颜色
    self.progressTintColor = [UIColor whiteColor];

    
}


- (void)setProgress:(CGFloat)progress animated:(BOOL)animated
{
    [super setProgress:progress animated:animated];
    NSString *text = [NSString stringWithFormat:@"%.0f%%", progress * 100];
    self.progressLabel.text = [text stringByReplacingOccurrencesOfString:@"-" withString:@""];
}

@end
